package PTA_03_09;

import java.util.Scanner;

public class s5 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long num = 0;
        num = sc.nextLong();
        long rel1 = num;
        long rel2 = num;
        int[] arr = new int[100];
        int flag = 0;
        int j = 0;
        while(rel1 != 0)
        {
            rel1 /= 10;
            arr[j] = (int)(rel2 % 10);
            rel2 /= 10;
            flag++;
            j++;
        }
        for (int i = 0, k =flag - 1; i < flag / 2; i++,k--) {
            if(arr[i] != arr[k])
            {
                System.out.println(num + "不是回文数");
                return;
            }
        }
        System.out.println(num + "是回文数");
    }
}
